<template>
  <view>
    <view class="fu-title-box">
      <view class="fu-title-x"></view>
      <view class="fu-title-name">{{ title }}</view>
    </view>
    <view class="desc" v-if="desc !== ''">{{ desc }}</view>
  </view>
</template>

<script lang="ts" setup>
// 定义可传递属性
const props = defineProps({
  title: {
    type: String,
    default: '',
  },
  desc: {
    type: String,
    default: '',
  },
})
</script>

<style lang="scss" scoped>
.fu-title-box {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  .fu-title-x {
    width: 10rpx;
    height: 28rpx;
    border-radius: 5px;
    background-color: #0083ff;
    margin-right: 4px;
  }
  .fu-title-name {
    font-weight: 600;
    font-size: 24rpx;
  }
}
.desc {
  color: #8a8a8a;
  font-size: 20rpx;
  margin-bottom: 15rpx;
}
</style>
